package com.springcloud.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

// 使用@FeignClient 设置使用的注册服务
@FeignClient(value = "SERVICE-HOME")
public interface FeignService {

    // 定义调用的接口
    @RequestMapping(value = "/home",method = RequestMethod.GET)
    String feignHome(@RequestParam(value = "name") String name);

}
